#ifndef COLORVIEW_H
#define COLORVIEW_H

#include <QWidget>
#include <QPaintEvent>
#include <QPainter>


// class made to create a graphical element that will show 2 colors (one in
// foreground, one of background)
class ColorView : public QWidget
{
public:
    ColorView();

    void paintEvent (QPaintEvent * event);
    void setForegroundColor(QColor colorFg);
    void setBackgroundColor(QColor colorBg);

private:
    QColor foregroundColor;
    QColor backgroundColor;


    int widthViewer;

};

#endif // COLORVIEW_H


